package com.qingzhuge.manager.entity;

import com.qingzhuge.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * @author : zero.xiao
 * @description : 部门管理
 * @date :2018/6/8 0008 下午 14:56
 * @modified :
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_dept")
public class SysDept extends BaseModel {
    private static final long serialVersionUID = 6158693263547548542L;
    /**
     * 上级部门
     */
    @ManyToOne
    private SysDept parent;
    /**
     * 排序
     */
    private Integer orderNum;

    public SysDept() {
    }

    public SysDept(Long id) {
        super(id);
    }
}
